package SalarySystem;

public class Data{
    String[] record=new String[5];
    public final static String[] labname ={"计算机网络实验室","组成原理实验室","网络安全实验室","量子力学实验室"},
    studentname = {"王喆","吴刚","张蒙"},scorename ={"优秀","良好","及格","不及格"};
    final static float[] wage= {1000,750,500,250} ;

    public float awage(String score){///一次清理的工资
        int i=0;
        for(i=0;i<scorename.length;i++)
            if(score.equals(scorename[i])){

                break;
            }
        return  wage[i];
    }
    public String toString(String Sname,String labname,String score,float money){

        return" 名字： "+Sname+" 实验室： "+labname+" 评分： "+score;
    }
    public void labclear(int date,String time,String name,String lab,String score,float money){
        record[date]=" 时间 "+time+" 名字： "+name+" 打扫的实验室： "+lab+" 评分 "+score+" 累计次工资 "+money;
    }

}